import request from '@/utils/request'

// 获取服务数据
export function servicedataget() {
  return request({
    url: '/system/outapi/monitor/service',
    method: 'get'
  })
}

// 获取应用数据
export function appdataget() {
  return request({
    url: '/system/outapi/monitor/app',
    method: 'get'
  })
}

// 获取调用量统计数据(图表)
export function Amountdataget(query) {
  return request({
    url: '/system/outapi/monitor/usageChart',
    method: 'get',
    params: query
  })
}

// 获取调用量统计数据(图表)
export function Topdataget() {
  return request({
    url: '/system/outapi/monitor/top5Chart',
    method: 'get'
  })
}

// 获取服务监控列表数据
export function Servicelist(query) {
  return request({
    url: '/system/outapi/monitor/service/list',
    method: 'get',
    params: query
  })
}

// 获取应用监控列表数据
export function Applist(query) {
  return request({
    url: '/system/outapi/monitor/app/list',
    method: 'get',
    params: query
  })
}

// 获取接口详情列表数据
export function Apilist(query) {
  return request({
    url: '/system/outapi/monitor/api',
    method: 'get',
    params: query
  })
}
